class ChaptersController < ApplicationController
  def update
    @chapter = Chapter.find(params[:id])
    respond_to do |format|
      @chapter.update_attributes(params[:chapter])
      format.json  { render :json => @chapter }  
    end
  end
end
